package com.family168.springsecuritybook.userinfo;

import java.sql.ResultSet;
import java.sql.SQLException;

import javax.sql.DataSource;

import org.springframework.jdbc.object.MappingSqlQuery;

public class UserInfoMapping extends MappingSqlQuery {
	protected UserInfoMapping(DataSource dataSource, String userinfoQuery) {
		super(dataSource, userinfoQuery);
		compile();
	}

	protected Object mapRow(ResultSet rs, int rownum) throws SQLException {
		String name = rs.getString(1);
		String role = rs.getString(2);
		
		
		UserInfo userInfo = null;

		return userInfo;
	}
}
